<?php

/*ini_set("display_errors",1);
echo 1;
echo file_get_contents("https://api.qidian.qq.com/cgi-bin/token?grant_type=client_credential&appid=200769550&secret=Oe3sNMrwTiT9vwlF");

var_dump(json_decode('{"errcode":45004,"errmsg":"\u53c2\u6570\u9519\u8bef"}',true));

echo 2;
echo `wget https://api.qidian.qq.com/cgi-bin/token?grant_type=client_credential&appid=200769550&secret=Oe3sNMrwTiT9vwlF`;
*/

?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>代码测试</title>
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="css/screen.css">

    <!-- QiDianDA -->



<script type="text/javascript">
/*基础数据跟踪代码*/
var _istTracker = _istTracker || [];
_istTracker.push( [ "db", "ainsight" ] ,[ "sitecode", "8000219" ]);
_istTracker.push( [ "_tracking" ] );

(function() {
    var dms = document.createElement('script');
    dms.type = 'text/javascript'; dms.async = true;
    dms.src = ('https:' == document.location.protocol ? 'https://2' : 'http://1') + '.allyes.com.cn/ainsight.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(dms, s);
})();
</script>


<script type="text/javascript">
/*点击事件跟踪代码(必须先包含基础代码)*/
/*按钮上onclick部代码如下调用上述方法，例如：<input type="button" value="发送" onclick="istTrackEvent();">*/
var istTrackEvent = function(){
	_istTracker.push(
		["evtcate", "MGH5"],
		["evtaction", "MGH5_<?=$_GET["wpaid"]?>"],
	);
	_istTracker.push(["_tracking"] );
    OnNavigate('http://q.url.cn/s/<?=$_GET["wpacode"]?>');
	};

</script>

</head>
<body>
    <div class="wrapper">
        <img id="btn" src="imgs/btn.png" alt="">
    </div>

    <script type="text/javascript">

        (function (){
            var clickEventType = ("ontouchstart" in window) ? "touchend" : "click";
            document.getElementById('btn').addEventListener(clickEventType, function (){
                istTrackEvent();
            }, false);
        })()

    </script>
</body>
<script type="text/javascript" src="http://automax.aiodt.com/jsp_client.js"></script>
</html>